<!DOCTYPE html>
<html>
<head>
<meta name="robots" content="none" />
<title><?php echo $this->headTitle();?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7,9">
<meta http-equiv="Content-Language" content="en_US" />
<link rel="shortcut icon" href="<?php echo $this->baseUrl('/favicon.ico');?>" />
<link href="<?php echo $this->baseUrl(_STATIC_HTTP . '/admin/css/main.css');?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl(_STATIC_HTTP . '/admin/css/lang/' . $this->language()->getName() . '.css');?>" rel="stylesheet" type="text/css" />
<?php echo $this->headLink() . $this->headStyle() . "\r\n";?>
</head>

<body id="<?php echo $this->viewId();?>">
<div class="mask hidden"></div>
<?php
echo '<div class="breadcrumb">';
echo '<ul>';
$pages = system_nav_crumbs::getInstance()->getPages();
$i = 0;
foreach($pages AS $page) {
	$i++;
	echo '<li>';
	if($i < count($pages)) {
		echo '<a href="' . $page->href() . '"';
		if($i == 1) echo ' target="_top"';
		echo '>' . $this->escape($page->getLabel()) . '</a>';
	} else {
		echo $this->escape($page->getLabel());
	}
	echo '</li>';
	if($i < count($pages)) echo '<li>»</li>';
}
echo '</ul><hr/>';
echo "</div>\n";

/**
 * 抛出异常在这里捕捉
 */
if($this->throwException) {
	echo '<div class="body"><div class="msg"><div class="common error">';
	echo '<i class="icon"></i><h4>EXCEPTION:</h4><div class="msg-bd">';
	if(is_string($this->throwException)) {
		echo $this->throwException;
	} else {
		echo $this->throwException->getMessage();
	}
	echo '</div></div></div></div>';
	echo "\n";
}
/**
 * 抛出消息
 */
if($this->throwMessage) {
	echo $this->render('include/complete.phtml') . "\n";
} else {
	echo $this->content . "\n";
}
echo $this->render('include/footer.phtml') . "\n";
echo $this->render('../_inc/debug.phtml');
echo '<script type="text/javascript" src="' . _STATIC_HTTP . '/admin/js/main.js"></script>';
?>
</body>
</html>